#!/bin/bash
#生成随机大小的文件
id=1
while(($id<10))
do
    name="test-`date +%Y`-`date +%m`-`date +%d`-$id-0"
    count=$(($RANDOM%10))
    dd if=/dev/zero of=./$name bs=1K count=11
    count_now=1
    while(($count>0))
    do  
        name="test-`date +%Y`-`date +%m`-`date +%d`-$id-$count_now"
        dd if=/dev/zero of=./$name bs=1K count=11
        count=$(($count-1))
        count_now=$(($count_now+1))
    done
    id=$(($id+1))
done
